axios.interceptors.response.use(function (response) {
    let ret = response.data

    if (ret.code === 10000 || ret.code === 20000) {
        return response;
    }else {
        layer.msg(ret.message);
        throw ret.message;
    }
}, function (error) {
    return Promise.reject(error);
});